|
Microwave filters GUI
2.0.3
|
Data structure containing info about properties of a family of curves and the curve list. More...
Public Member Functions | |
| def | __init__ |
| Class constructor. | |
| def | newCurves |
| Create new list of curves. | |
| def | deleteCurves |
| Delete all curves. | |
| def | updateCurves |
| Update all curves with new data. | |
| def | setPen |
| Set QPen for all curves. | |
| def | setVisible |
| Set visibility of all curves. | |
| def | setSymbol |
| Set symbol for all curves. | |
| def | setLegendItems |
| After creating a legend for the QWtPlot, this method will assign the QwtLegendItem of the first curve to self.legendItem, and remove the other QwtLegendItem's from the QwtLegend layout. | |
Data structure containing info about properties of a family of curves and the curve list.
A curve family is a list of curves sharing the same properties. The Y data for a curve family is defined in the columns of a 2-D numpy array.
The class attributes and methods will not be documented, because the names are self-explanatory and the code is trivial.
| def dbplot.CurveFamily.__init__ | ( | self, | |
| hPlot, | |||
| name, | |||
| xdata, | |||
| ydata, | |||
| axis, | |||
| visible, | |||
| color, | |||
| width | |||
| ) |
Class constructor.
| hPlot | |
| name | |
| xdata | |
| ydata | |
| axis | |
| visible | |
| color | |
| width |
Definition at line 1915 of file dbplot.py.
References dbplot.CurveFamily.axis, dbplot.DbPlot.hPlot, dbplot.CurveFamily.hPlot, dbplot.CurveFamily.legend, dbplot.CurveFamily.legendItem, dbplot.CurveFamily.name, dbplot.CurveFamily.Ncurves, dbplot.CurveFamily.newCurves(), dbplot.CurveFamily.pen, and dbplot.CurveFamily.visible.

| def dbplot.CurveFamily.newCurves | ( | self, | |
| xdata, | |||
| ydata | |||
| ) |
Create new list of curves.
| xdata | |
| ydata |
Definition at line 1936 of file dbplot.py.
References dbplot.CurveFamily.axis, dbplot.CurveFamily.curveList, dbplot.DbPlot.hPlot, dbplot.CurveFamily.hPlot, dbplot.CurveFamily.name, dbplot.CurveFamily.Ncurves, dbplot.CurveFamily.pen, and dbplot.CurveFamily.visible.
Referenced by dbplot.CurveFamily.__init__(), and dbplot.CurveFamily.updateCurves().

| def dbplot.CurveFamily.setLegendItems | ( | self, | |
legend = None, |
|||
updateLegend = False |
|||
| ) |
After creating a legend for the QWtPlot, this method will assign the QwtLegendItem of the first curve to self.legendItem, and remove the other QwtLegendItem's from the QwtLegend layout.
| legend | = QwtLegend in QWtPlot. If equal to None, the curves are being updated and the QwtLegend handle is already stored in self.legend . Default None. |
| updateLegend | = Call curve.updateLegend() for the 1st curve. Default False. |
Definition at line 2040 of file dbplot.py.
References dbplot.CurveFamily.curveList, dbplot.CurveFamily.legend, dbplot.CurveFamily.legendItem, and dbplot.CurveFamily.visible.
Referenced by dbplot.CurveFamily.updateCurves().

| def dbplot.CurveFamily.setPen | ( | self, | |
| pen | |||
| ) |
Set QPen for all curves.
| pen |
Definition at line 2007 of file dbplot.py.
References dbplot.CurveFamily.curveList, and dbplot.CurveFamily.pen.
| def dbplot.CurveFamily.setSymbol | ( | self, | |
| symbol | |||
| ) |
Set symbol for all curves.
| symbol |
Definition at line 2027 of file dbplot.py.
References dbplot.CurveFamily.curveList, and dbplot.CurveFamily.symbol.
Referenced by dbplot.PlotMarker.__init__().

| def dbplot.CurveFamily.setVisible | ( | self, | |
| visible | |||
| ) |
Set visibility of all curves.
| visible | = Visibility flag (Bool) |
Definition at line 2017 of file dbplot.py.
References dbplot.CurveFamily.curveList, and dbplot.CurveFamily.visible.
| def dbplot.CurveFamily.updateCurves | ( | self, | |
| xdata, | |||
| ydata | |||
| ) |
Update all curves with new data.
| xdata | |
| ydata |
Definition at line 1973 of file dbplot.py.
References dbplot.CurveFamily.curveList, dbplot.CurveFamily.deleteCurves(), dbplot.CurveFamily.Ncurves, dbplot.CurveFamily.newCurves(), and dbplot.CurveFamily.setLegendItems().

1.8.1.2